package br.uefs.dexa.rfframework.gui.config.dialogs;

import java.util.ArrayList;
import java.util.List;

import br.uefs.dexa.rfframework.config.AppConfigManager;

public class NewCollectionController {

	
	protected List<FeatureListItem> getFeatures()
	{
		List<FeatureListItem> features = new ArrayList<FeatureListItem>();
		
		String[] featuresString = AppConfigManager.getInstance().getFeatures();
		
		System.out.println("featuresString size: " + featuresString.length);
		
		for (Object feature : featuresString) 
		{
			FeatureListItem item = new FeatureListItem((String) feature);
			features.add(item);
		}
		
		return features;
	}
	
	protected void generateAllIndex(String collectionDir, List<FeatureListItem> features)
	{
		for (FeatureListItem featureListItem : features) {
			
			generateIndex(collectionDir, featureListItem);
		}
		
	}
	
	private void generateIndex(String collectionDir, FeatureListItem feature)
	{
		// test code
		int begin = 0;
		int end = 10000;
		
		//feature.set
		
		
		
	}
	
}
